package com.kyl.mapper;


import com.kyl.entity.NursingProject;
import com.kyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author WanJl
 * @version 1.0
 * @title NursingProjectMapper
 * @description 护理项目Mapper接口
 * @create 2025/1/10
 */
@Mapper
public interface NursingProjectMapper {

    List<NursingProjectVo> selectByPage(String name, Integer status, Integer pageNum, Integer pageSize);

    List<NursingProject> getList();

    int insert(NursingProject nursingProject);

    /**
     * 更新护理项目
     *
     * @param nursingProject
     */
    void update(NursingProject nursingProject);

    /**
     * 启用和禁用护理项目
     *
     * @param id
     * @param status
     * @return
     */
    void updateStatus(@Param("id") Long id, @Param("status") Integer status);

    /**
     * 根据id查询护理项目
     *
     * @param id
     * @return
     */
    NursingProjectVo selectById(Long id);

    /**
     * 删除护理项目
     *
     * @param id
     * @return
     */
    void deleteById(Long id);
}